﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using OpGen.Extensions.Network;

namespace OpGen.Extensions.Security
{
    public abstract class MethodTargetAuthentication 
    {
        public MethodAuthenticationTypes Authentication { get; protected set; }

        public AuthenticationStatus GetAuthenticationStatus(IConnection client)
        {
            return client.IsAuthenticated ? AuthenticationStatus.Authenticated : AuthenticationStatus.Anonymous;
        }
    }
}
